home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / shells / scsh-0.4 / scsh-0 / scsh-0.4.2 / scsh / ultrix / signals.scm < prev    next >
Text File  |  1995-10-13  |  2KB  |  49 lines

  1. ;;; Signal constant definitions for "generic"
  2. ;;; Copyright (c) 1994 by Olin Shivers.
  3. ;;; Copyright (c) 1994 by Brian D. Carlstrom.
  4.  
  5. (define-syntax define-signals
  6.   (syntax-rules ()
  7.     ((define-signals form ...)
  8.      (begin (define-enum-constant "signal" . form) ...))))
  9.  
  10. ;;POSIX only defined here.
  11.  
  12. (define-signals
  13.   ;; POSIX
  14.   (hup    1)    ; hangup 
  15.   (int    2)    ; interrupt 
  16.   (quit    3)    ; quit 
  17.   (ill    4)    ; illegal instruction (not reset when caught) 
  18.   (trap 5)      ; trace trap (not reset when caught)
  19.   (iot    6)    ; IOT instruction 
  20.   (abrt    6)    ; compat
  21.   (emt    7)    ; EMT instruction 
  22.   (fpe    8)    ; floating point exception 
  23.   (kill    9)    ; kill (cannot be caught or ignored) 
  24.   (segv    11)    ; segmentation violation
  25.   (sys  12)     ; bad argument to system call
  26.   (pipe    13)    ; write on a pipe with no one to read it 
  27.   (alrm    14)    ; alarm clock 
  28.   (term    15)    ; software termination signal from kill 
  29.   (urg  16)     ; urgent condition on IO channel
  30.   (stop    17)    ; sendable stop signal not from tty 
  31.   (tstp    18)    ; stop signal from tty 
  32.   (cont    19)    ; continue a stopped process 
  33.   (chld    20)    ; to parent on child stop or exit 
  34.   (cld  20)     ; compat                
  35.   (ttin    21)    ; to readers pgrp upon background tty read 
  36.   (ttou    22)    ; like TTIN for output if (tp->t_local<OSTOP) 
  37.   (io   23)     ; input/output possible signal
  38.   (xcpu 24)     ; exceeded cpu time limit
  39.   (xfsz 25)     ; exceeded file size limit
  40.   (vtalrm 26)   ; virtual time alarm
  41.   (prof 27)     ; profiling time alarm
  42.   (winch 28)    ; window size changes
  43.   (lost    29)     ; sys-v rec lock: notify user upon server crash
  44.   
  45.   ;; User defined
  46.   (usr1 30)    ; user defined signal 1 
  47.   (usr2 31)    ; user defined signal 2 
  48.   )
  49.